package com.invengo.library_db.entity.module_check.offline;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;

@Entity
public class FlowBean implements Serializable {
    /**
     * Serializable
     */
    private static final long serialVersionUID = 1L;
    @Id(autoincrement = true)
    private Long id;
    @Expose
    private String bodyJson;

    @SerializedName("dtOperate")
    @Expose
    private String dateTime;

    @SerializedName("staffid")
    @Expose
    private int userId;
    @Expose
    private @FlowType int flowType;

    @Generated(hash = 1078637417)
    public FlowBean(Long id, String bodyJson, String dateTime, int userId,
                    int flowType) {
        this.id = id;
        this.bodyJson = bodyJson;
        this.dateTime = dateTime;
        this.userId = userId;
        this.flowType = flowType;
    }

    @Generated(hash = 1595967423)
    public FlowBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBodyJson() {
        return this.bodyJson;
    }

    public void setBodyJson(String bodyJson) {
        this.bodyJson = bodyJson;
    }

    public String getDateTime() {
        return this.dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public int getUserId() {
        return this.userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getFlowType() {
        return this.flowType;
    }

    public void setFlowType(int flowType) {
        this.flowType = flowType;
    }

    @Override
    public String toString() {
        return " bodyJson==>  [ " + bodyJson + " ] ";
    }
}
